package com.cb.admin.service;

import java.util.List;
import java.util.Map;

import org.springframework.transaction.annotation.Transactional;

import com.cb.admin.domain.UserInfo;


public interface IUserInfoService {
	
	public Map queryForMap(UserInfo userInfo);
	
	public List<Map> query(UserInfo userInfo);
    
	public int querySize(UserInfo userInfo);
	
	public int queryByAccount(String account);
	
	public UserInfo queryByAP(String account);
	
	public UserInfo queryById(int id);
	
	public List<String> queryUserRoleByName(String account);
	
	public List<String> queryRoleMemuByName(List<String> roleId);
    
	@Transactional
	public int insert(UserInfo userInfo);
	
	public void update(UserInfo userInfo);
    
	public void deleteById(int id);
    
	public void updateState(int id,int state);
}